package com.leve.admin.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel("消息推送对象")
@Data
public class PushMessage {
    @ApiModelProperty(position = 1, value = "分组id", readOnly = true)
    private String id;
    @ApiModelProperty(position = 1, value = "分组id", required = true)
    private String groupid;
    @ApiModelProperty(position = 2, value = "分组名称", required = true)
    private String groupName;
    @ApiModelProperty(position = 3, value = "发送内容", required = true)
    private String context;
    @ApiModelProperty(position = 4, value = "内容类型", required = true)
    private String type;//0 文字 1 图片
    @ApiModelProperty(position = 5, value = "推送时间", required = true)
    private String pushDate;
    @ApiModelProperty(position = 6, value = "创建时间", readOnly = true)
    private Date createdDate = new Date();
    @ApiModelProperty(position = 7, value = "是否循环", required = true)
    private boolean cycle;//是否循环
    @ApiModelProperty(position = 8, value = "推送状态", readOnly = true)
    private PushStatus pushStatus = PushStatus.WAIT_START;
    @ApiModelProperty(position = 9, value = "推送类型", required = true)
    private PushType pushType;
    @ApiModelProperty(position = 10, value = "是否删除", readOnly = true)
    private boolean isDelete = false;
    @ApiModelProperty(position = 10, value = "图片地址", required = true)
    private String imgUrl;
}
